<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<html>
  <head>    
    <title>处理界面</title>
  </head> 
  <body>
  		<%
  			request.setCharacterEncoding("utf-8");
  			String uname=request.getParameter("user");
  			String upwd=request.getParameter("pwd");
  			if(uname.equals("张三")&&upwd.equals("123")){
  		 %>
  		 	<jsp:forward page="ex4_main.jsp">
  		 		<jsp:param name="user" value="<%=uname%>"/>
  		 	</jsp:forward> 
  		 <%}else{%>
  		 		<jsp:forward page="ex4.jsp"/>	
  		 <% } %>
  </body>
</html>
